Skip to main content

EchoEvaluation

EchoEvaluation[expr] prints expr before evaluation, then prints the result after evaluation and returns that result.

EchoEvaluation[expr,label] prepends label when printing expr before and after evaluation.

EchoEvaluation[expr,label1->label2] prepends label1 before evaluation and label2 after evaluation.

EchoEvaluation[expr,labels,f] prints expr before evaluation, then evaluates expr to the result res and prints f[res].

EchoEvaluation[expr,labels,g->f] prints g[expr] before evaluating expr and then f[res] after evaluation.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.